Skip to content

string: support constexpr dynamic allocation in string_heap_dilate_uncheck#1274

Merged
trcrsired merged 2 commits into
cppfastio:nextfrom
SekaiArendelle:constexpr-string
May 16, 2026
Merged

string: support constexpr dynamic allocation in string_heap_dilate_uncheck#1274
trcrsired merged 2 commits into
cppfastio:nextfrom
SekaiArendelle:constexpr-string

Conversation

@SekaiArendelle
Copy link
Copy Markdown

Add if consteval branch using allocate_at_least + manual construct/deallocate for constant-evaluated contexts, enabling constexpr reserve/push_back/clear operations that require heap growth. Replace the minimal constexpr_construct test with a comprehensive constexpr_tests suite covering default construction, reserve, push_back (including growth), and clear at compile time.

…check

Add `if consteval` branch using `allocate_at_least` + manual construct/deallocate for constant-evaluated contexts, enabling constexpr reserve/push_back/clear operations that require heap growth. Replace the minimal constexpr_construct test with a comprehensive constexpr_tests suite covering default construction, reserve, push_back (including growth), and clear at compile time.
@trcrsired trcrsired merged commit e14aeaf into cppfastio:next May 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants